<extend name="Layout:layout_content" />
<block name="body_main">
    <form action="{:U('Admin/admin_role_save')}" method="post" class="xsui-form">
        <table>
            <tr>
                <th>角色：</th>
                <td><select name="role_id" data-url="{:U('Role/get_role_tree_json')}"></select></td>
            </tr>
        </table>
        <button type="submit">保存</button>
        <input type="hidden" name="id" value="{$data.id}" />
    </form>  
</block>
<block name="body_after">
    <script type="text/javascript">
        ajax_load_options('select[name="role_id"]', $('select[name="role_id"]').data('url'), '请选择角色', '{$data.role_id}');
    </script>
</block>
